home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 41 / Amiga Format CD41 (1999-06)(Future Publishing)(GB)[!][issue 1999-07].iso / -seriously_amiga- / comms / www / dns / dns_simple < prev    next >
AmigaDOS Script File  |  1999-04-28  |  698b  |  33 lines

  1. .key domain
  2.  
  3. ; $VER: DNS 1.3 (16.04.99) Domain Name Search - Freeware by Amiguy@TheWorld.net
  4.  
  5. failat 15
  6.  
  7. if "<domain>" eq ""
  8.     echo DNS 1.3 (16-Apr-99) Amiguy@TheWorld.net
  9.         echo usage: DNS any_domain_name.com
  10.         quit
  11. endif
  12.  
  13. Echo "Sending query on <domain> to InterNIC..."
  14.  
  15. httpj >NIL: "http://www.networksolutions.com/cgi-bin/purchase/create_list?STRING=<domain>&isFromHomePage=true" to T:DNS-Result.html
  16.  
  17. if warn
  18.         echo "! Not Connected !"
  19.         quit
  20. endif
  21.  
  22. Echo Analyzing response...
  23.  
  24. search T:DNS-Result.html "Congratulations" >NIL:
  25.  
  26. if not warn
  27.         echo "<domain> is available! :)"
  28.         else
  29.         echo "<domain> is taken! :("
  30. endif
  31.  
  32. delete T:DNS-Result.html >NIL:
  33.